package vk.message.gui.component;

import vk.message.R;
import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.LinearLayout;
import android.widget.TextView;

public class TopTabButton extends LinearLayout {
    private final TextView nameTextView;

    public TopTabButton(Context context) {
        this(context, null);
    }

    public TopTabButton(Context context, AttributeSet attrs) {
        super(context, attrs);
        LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
        inflater.inflate(R.layout.tab_button_top, this);
        nameTextView = (TextView) findViewById(R.id.button_name);
    }

    public TextView getNameTextView() {
        return nameTextView;
    }
}
